class ItemsController < ApplicationController

  def index
    @item = Item.all
  end

  def show
    @item = Item.find(params[:id])
    @tags = @item.taggings
    @pictures = @item.pictures.limit(4)
    @hot_latest_reviews = [@item.hot_reviews(4),@item.latest_reviews(4)]
    @review = ItemReview.new
  end

end
